package com.mobilefly.jilinjiexuncha;

import android.app.Application;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;

/**
 * Created by MAOYU
 * ＊ on 2018/2/28.
 */

public class GeneralApplication extends Application {
    private RequestQueue mRequestQueue;
    @Override
    public void onCreate() {
        super.onCreate();

    }
    //得到Volley请求队列
    public RequestQueue getRequestQueue(){
        if(mRequestQueue == null){
            mRequestQueue = Volley.newRequestQueue(getApplicationContext());
        }
        return mRequestQueue;

    }
}
